import ctypes
from typing import List

class ASIODevice:
    def __init__(self, device_id: str):
        """初始化ASIO设备"""
        self.dll = ctypes.CDLL("asio.dll")
        self.device_id = device_id
        self._initialize()

    def _initialize(self):
        # 加载驱动
        self.dll.ASIODriverOpen()
        # 设置缓冲区大小
        self.dll.ASIODriverSetBufferSize(512)

    def start(self):
        """启动设备"""
        self.dll.ASIODriverStart()

    def stop(self):
        """停止设备"""
        self.dll.ASIODriverStop()

    def get_channels(self) -> List[str]:
        """获取可用通道"""
        return ["Left", "Right"]